<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8">
		<title>过滤器的使用</title>
	</head>
	<body>
		<div id="app" v-cloak @click="">
			用户输入内容：<input type="text" v-model="username" />
			{{username | rename | rename1}}
		</div>
	</body>
</html>
<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript"> 
	//单独定义过滤器
	Vue.filter("rename",function(value){
		return value.split("").reverse().join("")
	});
	Vue.filter("rename1",function(value){
		return value.split("").reverse().join("")
	});
	var v=new Vue({
		el:"#app",
		data:{
			username:""
		},
		methods:{
		
		},
		computed:{
			
		},
		watch:{
		}
	});
</script>
